package com.easy.mapper;

import com.easy.bean.Category;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CategoryDao {
    int add(@Param("category") Category category);
    int del(@Param("id") Integer id);
    int edit(@Param("category") Category category);
    List<Category> all(@Param("category") Category category);
    Category one(@Param("id") Integer id);
    List<Category> page(@Param("page") Page page, @Param("category") Category category);
    int pageCount(@Param("category") Category category);
}
